<?php defined('SYSPATH') or die('No direct script access.');?>
<?php $index = 0; ?>
<div class="center_title_bar">Orders</div>
<?php foreach($orders as $order): ?>
	<?php $transaction = $order->transaction; ?>
	<div class="ord_box">
		<div class="center_ord_box">
		  <div class="ord_title"><?php echo HTML::anchor('user/profile/order/'.$order->id, 'Order '.$order->id); ?></div>
		  <div class="ord_box"><?php echo 'Date Placed: '.$order->date_placed; ?><br>
							   <?php echo 'Total: '.$transaction->amount; ?> </div>
		</div>
	</div>
<?php endforeach; ?>
      